import http from '@/utils/httpUtils'

/**
 * @获取验证码
 */
export function getSlideSercret(){
    return http('/common/secret/slideSecret','get');
}

/**
 * @校验验证码
 */
export function checkSlideSecret(slideSecretKey,slideSecretValue){
    const request = {
        slideSecretKey,
        slideSecretValue
    }
    return http('/common/secret/checkSlideSecret','post',request);
}

/**
 * @登录
 */
export function usernameLogin(username,password){
    const request = {
        username,
        password
    }
    return http("/system/login/usernameLogin",'post',request);
}

/**
 * @登出
 */
export function logout(){
    return http('/system/logout','post');
}

/**
 * @注册用户
 */
export function userRegister(query){
    return http('/system/register/userRegister','post',query)
}

/**
 * @注册企业
 */
export function companyRegister(query){
    return http('/system/register/companyRegister','post',query)
}